package com.lagou.concurrent.demo;

public class Main2 {
    public static void main(String[] args) throws InterruptedException {
        MyThread2 myThread = new MyThread2();
        myThread.start();
        Thread.sleep(10);
        // 中断线程
        myThread.interrupt();
        Thread.sleep(100);

        System.exit(0);
    }
}
